import { AppTabBar } from './app-tab-bar.entity'
import { Entity, PrimaryGeneratedColumn, ManyToOne, Column } from 'typeorm'

@Entity()
export class AppTabBarList {
  @PrimaryGeneratedColumn()
  id: number

  @ManyToOne(type => AppTabBar, tabBar => tabBar.list)
  tabBar: AppTabBar

  @Column()
  pagePath: string

  @Column()
  text: string

  @Column()
  iconPath: string

  @Column()
  selectedIconPath: string
}
